package com.xzh.springCloud.service;

import com.xzh.springCloud.entity.Result;
import org.springframework.stereotype.Component;

/**
 * @Author: zhiHong
 * @CreateTime: 2023-08-31 10:54
 * @Description:
 */
@Component
public class MemberFallbackService implements MemberOpenFeignService{
    @Override
    public Result queryMemberById(Long id) {
        return Result.error("500", "被调用服务异常，熔断降级，快速返回结果，防止线程堆积");
    }
}
